#include "temperature.h"

network::temperature::temperature(boost::shared_ptr<network::send_impl> i, 
				  const string &temp)
: sendable(i), _temp(temp)
{}

string network::temperature::get_string()
{
	if(_temp == "") {
		create_single_object("list_temp");
	} else {
		create_open_object("temp");
		create_attrib("value", _temp);
		create_close_object("temp");
	}
	string rtrn = get_header();
	rtrn += get_footer();
	return rtrn;
}

